package online.heycm.rbac.domain.user.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import online.heycm.rbac.domain.user.repository.entity.UserProfile;
import online.heycm.rbac.param.user.UserPageReq;
import org.apache.ibatis.annotations.Param;

/**
 * 用户基础信息表 Mapper 接口
 *
 * @author heycm
 * @since 2024-01-11
 */
public interface UserProfileMapper extends BaseMapper<UserProfile> {

    IPage<UserProfile> selectPageUser(@Param("user") UserPageReq req, IPage<UserProfile> page);

    IPage<UserProfile> selectPageUserByRole(@Param("user") UserPageReq req, IPage<UserProfile> page);
}
